﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="dept_set.aspx.cs" Inherits="HY.WEB.SYS._deptset2" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../css/main.css" rel="stylesheet" type="text/css" />
</head>
<body>

<form id="form1" runat="server">

    <ext:PageManager ID="PageManager1" runat="server" AutoSizePanelID="Panel2" />
    
    <ext:Panel ID="Panel2" runat="server" Height="250px" ShowBorder="false" AutoWidth="true"  
        Layout="HBox" BoxConfigAlign="Stretch" BoxConfigPosition="Left" BoxConfigPadding="0"
        BoxConfigChildMargin="0 0 0 0" ShowHeader="false"  Title="设置" >      
        <Items> 
            
     <ext:Panel ID="Panel1" runat="server" Width="350px" BodyPadding="5px" EnableBackgroundColor="true"
                ShowBorder="false" ShowHeader="false" Title="Panel">
                <Items>
   
   <ext:Grid ID="Grid1" Title="部门列表"   Height="350px"   PageSize="15" ShowBorder="true" ShowHeader="true" AllowPaging="true"
        runat="server" EnableCheckBoxSelect="True"  DataKeyNames="sid,dept_bh"  AutoPostBack="true"   onrowcommand="Grid1_RowCommand" 
        OnPageIndexChange="Grid1_PageIndexChange" EnableRowNumber="True" OnSort="Grid1_Sort" >      
              <Toolbars>
            <ext:Toolbar ID="Toolbar2" runat="server">
                <Items>
                    <ext:Button ID="Button1" Text="删除选中项" Icon="Delete" OnClick="btnDelete_Click" runat="server">
                    </ext:Button>
                </Items>
            </ext:Toolbar>
        </Toolbars>
        <Columns>
            <ext:LinkButtonField Width="50px" CommandName="sub" HeaderText="编号"  DataTextField="dept_bh" SortField="dept_bh"  />  
       <ext:LinkButtonField Width="90px" HeaderText="部门名称"  DataTextField="dept_nm" SortField="dept_nm"  />  
     
          <ext:LinkButtonField CommandName="edit" Width="30" Icon="TableEdit"   />
        </Columns>
    </ext:Grid>          

  <ext:SimpleForm ID="SimpleForm1" BodyPadding="5px" Width="300px" EnableBackgroundColor="true"
        Title="添加｜编辑" runat="server">
         <Items>
             <ext:HiddenField ID="hidsid" runat="server">
             </ext:HiddenField>        
             <ext:TextBox ID="txt1" runat="server" Label="编号" Text="">
             </ext:TextBox>
             <ext:TextBox ID="txt2" runat="server" Label="名称" Text="">
             </ext:TextBox>
            
             <ext:Button ID="btsave" runat="server" Text="保存" OnClick="btsave_Click">
             </ext:Button>
                       </Items>
    </ext:SimpleForm>
           
     
             </Items>
            </ext:Panel> 

          

            <ext:Panel ID="Panel3" AutoScroll="true" runat="server" BodyPadding="5px" 
            EnableBackgroundColor="true" Width="400"   ShowBorder="false" ShowHeader="false"  Title="组别">
                <Items>
                                          
         <ext:Grid ID="Grid2" Title="设置"  AutoScroll="true"  Height="350px"   AutoWidth="true"  ShowBorder="true" ShowHeader="true" 
        runat="server"  DataKeyNames="sid,gname"    EnableRowNumber="True"    onrowcommand="Grid2_RowCommand"  >
               <Toolbars>
            <ext:Toolbar ID="Toolbar1" runat="server">
                <Items>
                    <ext:Button ID="btnDelete" Text="删除选中项" Icon="Delete" OnClick="btnDelete2_Click" runat="server">
                    </ext:Button>
                </Items>
            </ext:Toolbar>
        </Toolbars>
        <Columns>   
         <ext:LinkButtonField Width="100px" CommandName="edit" HeaderText="组名"  DataTextField="gname" SortField="gname"  />  
         <ext:BoundField Width="150px" DataField="dname"  HeaderText="部门" />    
            
          <ext:BoundField Width="150px" DataField="goname"  HeaderText="组长" />
 </Columns>
    </ext:Grid>          
             
               
  <ext:SimpleForm ID="SimpleForm2" BodyPadding="5px" Width="300px" EnableBackgroundColor="true"
        Title="添加｜编辑" runat="server">
         <Items>
             <ext:HiddenField ID="hidsid2" runat="server">
             </ext:HiddenField>      

               <ext:DropDownList ID="ddldept" runat="server" Label="部门"  ></ext:DropDownList>
             <ext:TextBox ID="txtgname" runat="server" Label="组名" Text=""> </ext:TextBox>
              <ext:DropDownList ID="ddlowen" runat="server" Label="指定组长"  ></ext:DropDownList>
            
             <ext:Button ID="Button2" runat="server" Text="保存" OnClick="btsave2_Click">
             </ext:Button>
         </Items>
    </ext:SimpleForm>
           
     
                </Items>
            </ext:Panel>
 
    <ext:Panel ID="Panel4" AutoScroll="true" runat="server" BodyPadding="5px" 
            EnableBackgroundColor="true" Width="350"  ShowBorder="true" ShowHeader="true" Title="成员表">
                <Items>
                                          
         <ext:Grid ID="Grid3" Title="组成员表"  AutoScroll="true"  Height="450px" 
           AutoWidth="true"  ShowBorder="false" ShowHeader="false"  
        runat="server"  DataKeyNames="sid"     EnableRowNumber="True"    >
              <Columns>   
         <ext:BoundField Width="80px" DataField="dgroup"  HeaderText="组名" />       
          <ext:BoundField Width="120px" DataField="user_name"  HeaderText="组成员" />
 </Columns>
    </ext:Grid>          
            
                </Items>
            </ext:Panel>
            
             
        </Items>
    </ext:Panel>
  
    <br />
    <br />
    <br />
    <br />
    <br />
    </form>
</body>
</html>
